#numpy的特殊数组：0数组和一数组

import numpy as np
print(np.ones(4))
print(np.ones((2,3)))
print(np.ones(4,dtype = bool))

'''
[1. 1. 1. 1.]

[[1. 1. 1.]
 [1. 1. 1.]]
 
[ True  True  True  True]
'''